﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;

namespace Chart.Net
{
    public abstract class BarChart : Chart
    {
        protected Collection<List<Bar>> barCollection = new Collection<List<Bar>>();
        protected bool stacked = false;
        protected bool horizontal = true;
        protected int barHeight = 40;

        public bool Stacked
        {
            get { return stacked; }
            set { stacked = value; }
        }

        public bool Horizontal
        {
            get { return horizontal; }
            set { horizontal = value; }
        }

        public int BarHeight
        {
            get { return barHeight; }
            set { barHeight = value; }
        }

        public Collection<List<Bar>> BarCollection
        {
            get { return barCollection; }
        }

        public class Bar
        {
            public string Key { get; set; }
            public string Value { get; set; }

            public Bar(string key, string value)
            {
                Key = key;
                Value = value;
            }
        }
    }
}
